import type {Metadata} from "next";
import './globals.css'
import Header from "@/components/header";
import {Inter, Noto_Sans_Rejang} from 'next/font/google'
import {AntdRegistry} from "@ant-design/nextjs-registry";
import Link from "next/link";

// If loading a variable font, you don't need to specify the font weight
const notoSansRejang = Noto_Sans_Rejang({
    subsets: ['latin'],
    weight: '400'
})

export default function RootLayout({children, modal}: Readonly<{
    children: React.ReactNode;
    modal: React.ReactNode;
}>) {

    return (
        <html className={notoSansRejang.className}>
        <body>
        <AntdRegistry>
            {children}
            {modal}
        </AntdRegistry>
        </body>
        </html>
    );
}
